/**
 * yiqihao(一起好商务股份有限公司) copyright 
 */
package com.p2p.front.web.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONObject;
import com.p2p.base.annotation.LoginNeedless;
import com.p2p.base.web.controller.BaseController;
import com.p2p.front.dal.model.LoopNotice;
import com.p2p.front.service.LoopNoticeService;

/**
 *
 * @author leiruiqi@yiqihao.com
 *
 * 2015年1月30日 上午10:02:14
 */
@RequestMapping("/loopNotice")
@Controller
public class LoopNoticeController extends BaseController{

	@Resource
	private LoopNoticeService loopNoticeService;
	
	@LoginNeedless
	@RequestMapping("/showAll")
	public void showAllNotice(HttpServletResponse response){
		List<LoopNotice> loopMoticeList = loopNoticeService.listAll(1,3);
		JSONObject jsono = new JSONObject();
		jsono.put("succese", true);
		jsono.put("loopNoticeList", loopMoticeList);
		this.returnJsonObject(response, jsono);
		return;
	}
}
